<#include "/layout/_layout.ftl" />
<@head title="首页|四眼井|互联网人的乐园 ">
<link href="${static_domain}/js/jquery-validation/validate.min.css" type="text/css" rel="stylesheet"/>
<style type="text/css">
	input {
		background-color: transparent;
		box-shadow: 1px 1px 3px #ccc;
	}

	.ui-input:focus {
		border: 1px #a6a6a6 solid;
		border-top-color: #808080;
		outline: 1px #eee solid;
	}

	label .error {
		color: #aaaaaa !important;
	}
</style>
</@head>
<@body>
<div style="width:600px;margin:20px auto">
	<div class="ui-box">
		<div class="ui-box-title">
			<h3>用户登录</h3>
		</div>
		<div class="ui-box-container ui-box-content">
			<form action="/login/submit" method="post" class="ui-form" id="login_form">
				<input type="hidden" name="redirect" value="${redirect!}"/>
			${error!}
				<div class="ui-form-item">
					<label for="" class="ui-label">
						用户名
					</label>
					<input class="ui-input required" type="text" name="users.username">
				</div>
				<div class="ui-form-item">
					<label for="" class="ui-label">
						密码
					</label>
					<input class="ui-input required" type="password" name="users.password">
				</div>
				<div class="ui-form-item">
					<!-- baidu social login -->
					<script type="text/javascript" id="bd_soc_login_boot"></script>
					<script type="text/javascript">
						(function () {
							var t = new Date().getTime(),
									script = document.getElementById("bd_soc_login_boot"),
									redirect_uri = encodeURIComponent("http://www.siyanjing.com/oauth/callback"),
									domid = "111",
									src = "http://openapi.baidu.com/social/oauth/2.0/connect/login?redirect_uri="
											+ redirect_uri + "&domid=" + domid
											+ "&client_type=web&response_type=code&media_types=sinaweibo%2Cqqdenglu%2Cbaidu%2Cqqweibo%2Ckaixin&size=-1&button_type=4&client_id=ib5F5mEwDKNdX19qk2KrhoIn&view=embedded&t=" + t;
							script.src = src;
						})();
					</script>
					<!-- baidu social login END-->
				</div>
				<div class="ui-form-item">
					<input type="submit" class="btn-g blue" value="登录">
					<input type="button" class="btn-g white" value="取消">
				</div>
			</form>
		</div>
	</div>
</div>
</@body>
<@script>
<script src="${static_domain}/js/jquery-validation/validate.min.js"></script>
<script src="${static_domain}/js/jquery-validation/jquery.metadata.min.js"></script>
<script type="text/javascript">
	$("#login_form").validate();
</script>
</@script>
